package com.hoshiicloud.goods.mapper.goods;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hoshiicloud.goods.entity.goods.GoodsSpecificationsValues;
import com.hoshiicloud.goods.param.goods.GoodsSpecificationsValuesQueryParam;
import com.hoshiicloud.goods.vo.GoodsSpecificationsValuesVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 商品规格_值 Mapper 接口
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface GoodsSpecificationsValuesMapper extends BaseMapper<GoodsSpecificationsValues> {
    /**
     * 查询最新排序
     * @param entity
     * @return
     */
    Integer selectMaxOrdered(GoodsSpecificationsValues entity);

    Page<GoodsSpecificationsValuesVo> setPageByParam(Page<GoodsSpecificationsValuesVo> page, @Param("param") GoodsSpecificationsValuesQueryParam param);
}
